﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="SwissBiking.list" %>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    

    <form id="form1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" Width="987px">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" />
            <asp:ImageField DataImageUrlField="image" HeaderText="image">
                <ControlStyle Height="100px" />
            </asp:ImageField>
            <asp:BoundField DataField="username" HeaderText="username" SortExpression="username" />
            
            <asp:BoundField DataField="email" HeaderText="email" />
            <asp:HyperLinkField HeaderText="Details" Text="View details" DataNavigateUrlFormatString="~/Details.aspx?id={0}" DataNavigateUrlFields="id" />
   
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringx %>" ProviderName="<%$ ConnectionStrings:ConnectionStringx.ProviderName %>" SelectCommand="SELECT [ID], [username], [image], [email] FROM [users]"></asp:SqlDataSource>
</form>
</asp:Content>